"use strict";
import { Application } from "egg";
import type from "./routers/route-type";
import commodity from "./routers/route-commodity";
import admin from "./routers/route-admin";
import common from "./routers/route-common";
import wx from "./routers/route-wx";
import address from "./routers/route-address";
import coupon from "./routers/route-coupon";
import order from "./routers/route-order";

const asyncFile = (app: Application) => {
  commodity(app)
  type(app)
  admin(app)
  common(app)
  wx(app)
  address(app)
  coupon(app)
  order(app)
};

export default (app: Application) => asyncFile(app);
